/**
 * Created by guanzhongkai on 2019-05-10 16:19.
 */
package config

import "ngrok/util/gopath"

func FindConfFile(filename string) string {
	scanPath := []string{"./conf", "../conf", "../../conf"}
	for _, path := range scanPath {
		confFile := path + filename
		if gopath.Exists(confFile) && gopath.IsFile(confFile) {
			return confFile
		}
	}

	return "." + filename
}
